import 'package:flutter/widgets.dart';

/// Author: Blake
/// Created: 2023-11-07
///
/// 供页面监听 Router跳转使用
/// https://api.flutter.dev/flutter/widgets/RouteObserver-class.html
///
/// 需要State 混入 RouteAware 使用
class GTRouterObserver extends RouteObserver {
  static GTRouterObserver? _instance;

  static GTRouterObserver get instance => _instance ??= GTRouterObserver._internal();

  GTRouterObserver._internal();
}
